package calculator;

public class ErrorExpression implements IExpression {

	String reason;
	
	public ErrorExpression(String reason)
	{
		this.reason = reason;
	}
	
	@Override
	public Double calculate() {
		throw new RuntimeException(reason);
	}

}
